import 'package:flutterproject/generated/json/base/json_convert_content.dart';
import 'package:flutterproject/page/mine/children/assets/data/zengzhi_list_bean.dart';

ZengzhiListBean $ZengzhiListBeanFromJson(Map<String, dynamic> json) {
	final ZengzhiListBean zengzhiListBean = ZengzhiListBean();
	final List<ZengzhiListList>? list = jsonConvert.convertListNotNull<ZengzhiListList>(json['list']);
	if (list != null) {
		zengzhiListBean.list = list;
	}
	return zengzhiListBean;
}

Map<String, dynamic> $ZengzhiListBeanToJson(ZengzhiListBean entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['list'] =  entity.list?.map((v) => v.toJson()).toList();
	return data;
}

ZengzhiListList $ZengzhiListListFromJson(Map<String, dynamic> json) {
	final ZengzhiListList zengzhiListList = ZengzhiListList();
	final String? costAmount = jsonConvert.convert<String>(json['costAmount']);
	if (costAmount != null) {
		zengzhiListList.costAmount = costAmount;
	}
	final int? createTime = jsonConvert.convert<int>(json['createTime']);
	if (createTime != null) {
		zengzhiListList.createTime = createTime;
	}
	final String? releasedAmount = jsonConvert.convert<String>(json['releasedAmount']);
	if (releasedAmount != null) {
		zengzhiListList.releasedAmount = releasedAmount;
	}
	final int? state = jsonConvert.convert<int>(json['state']);
	if (state != null) {
		zengzhiListList.state = state;
	}
	final String? title = jsonConvert.convert<String>(json['title']);
	if (title != null) {
		zengzhiListList.title = title;
	}
	final String? totalAmount = jsonConvert.convert<String>(json['totalAmount']);
	if (totalAmount != null) {
		zengzhiListList.totalAmount = totalAmount;
	}
	return zengzhiListList;
}

Map<String, dynamic> $ZengzhiListListToJson(ZengzhiListList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['costAmount'] = entity.costAmount;
	data['createTime'] = entity.createTime;
	data['releasedAmount'] = entity.releasedAmount;
	data['state'] = entity.state;
	data['title'] = entity.title;
	data['totalAmount'] = entity.totalAmount;
	return data;
}